package com.tupu.mapper.dispatch;

import com.tupu.entity.dispatch.SignalfrequencyData;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
* @author 15702
* @description 针对表【tb_signalfrequency_data】的数据库操作Mapper
* @createDate 2023-11-15 11:18:10
* @Entity com.tupu.entity.dispatch.SignalfrequencyData
*/
public interface SignalfrequencyDataMapper extends BaseMapper<SignalfrequencyData> {

    List<Map<String, Object>> signalFrequencyWarningSignalTypePercent(@Param("deviceType")String deviceType,@Param("station") String station,@Param("signalType") String signalType,@Param("actionType") String actionType,@Param("importantType") String importantType,@Param("startTime") LocalDateTime startTime,@Param("endTime") LocalDateTime endTime);

    List<Map<String, Object>> signalFrequencyWarningSignalStationTop5(@Param("deviceType")String deviceType,@Param("station") String station,@Param("signalType") String signalType,@Param("actionType") String actionType,@Param("importantType") String importantType, @Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime);

    List<Map<String, Object>> signalFrequencyWarningSignalDeviceTop5(@Param("startTime") LocalDateTime startTime,@Param("endTime") LocalDateTime endTime);

    List<Map<String, Object>> signalFrequencyWarningSignalSpeed(@Param("deviceType")String deviceType,@Param("station") String station,@Param("signalType") String signalType,@Param("actionType") String actionType,@Param("importantType") String importantType, @Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime);
}




